<template>
  <demoBlock title="自定义配置">
    <vcu-cell is-link title="自定义颜色" @click="showCustomColor" />
    <vcu-cell is-link title="自定义时长" @click="showCustomDuration" />
  </demoBlock>
</template>

<script>
import { defineComponent, ref } from "vue";
import { Notify } from "../../../components/index";
export default defineComponent({
  setup() {
    const showCustomColor = () => {
      Notify({
        color: "#ad0000",
        message: "通知信息",
        background: "#ffe1e1",
      });
    };
    const showCustomDuration = () => {
      Notify({
        message: "1秒后自动关闭",
        duration: 1000,
      });
    };
    return { showCustomColor, showCustomDuration };
  },
});
</script>
